/**
 * Copyright © 2021-2025 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.medication.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.medication.service.dto.MedicationInfoDTO;
import com.jeeplus.medication.domain.MedicationInfo;

/**
 * 处方信息MAPPER接口
 * @author xx
 * @version 2024-02-18
 */
public interface MedicationInfoMapper extends BaseMapper<MedicationInfo> {

    /**
     * 根据id获取处方信息
     * @param id
     * @return
     */
    MedicationInfoDTO findById(String id);

    /**
     * 获取处方信息列表
     *
     * @param queryWrapper
     * @return
     */
    IPage <MedicationInfoDTO> findList(Page <MedicationInfoDTO> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

}
